]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
searchDisplay: Remove a couple of no longer used variables
authorRui Matos <tiagomatos@gmail.com>
Mon, 7 May 2012 15:42:05 +0000 (17:42 +0200)
committerRui Matos <tiagomatos@gmail.com>
Mon, 7 May 2012 19:45:42 +0000 (21:45 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=675328

js/ui/searchDisplay.js

index 1305479ee1ddff6b370b9ad6d88fa90abe954077..f3facd95f0cd6c0558b1129f295ab29f5457c2d2 100644 (file)
@@ -208,10 +208,8 @@ const SearchResults = new Lang.Class({
         this._content.add(this._statusText);
         this._providers = this._searchSystem.getProviders();
         this._providerMeta = [];
-        this._providerMetaResults = {};
         for (let i = 0; i < this._providers.length; i++) {
             this.createProviderMeta(this._providers[i]);
-            this._providerMetaResults[this.providers[i].title] = [];
         }
         this._searchProvidersBox = new St.BoxLayout({ style_class: 'search-providers-box' });
         this.actor.add(this._searchProvidersBox);
@@ -301,7 +299,6 @@ const SearchResults = new Lang.Class({
     },
 
     _clearDisplay: function() {
-        this._visibleResultsCount = 0;
         for (let i = 0; i < this._providerMeta.length; i++) {
             let meta = this._providerMeta[i];
             meta.resultDisplay.clear();
@@ -380,7 +377,6 @@ const SearchResults = new Lang.Class({
             this._clearDisplayForProvider(provider);
             meta.resultDisplay.setResults([], []);
         } else {
-            this._providerMetaResults[provider.title] = providerResults;
             meta.resultDisplay.setResults(providerResults, terms);
             let results = meta.resultDisplay.getResultsForDisplay();